import request from '@/utils/request'

// 我的收藏
export function userApplyList() {
  return request({
    url: '/reception/apply/userApplyList',
    method: 'get'
  })
}
export function collectionUserApply(params) {
  return request({
    url: '/reception/apply/collectionUserApply',
    method: 'post',
    data: params
  })
}

// 可用应用一级
export function treeselect() {
  return request({
    url: '/reception/apply/treeselect',
    method: 'get'
  })
}

export function appList() {
  return request({
    url: '/reception/apply/list',
    method: 'get'
  })
}
// 可用卡片列表
export function cardList() {
  return request({
    url: '/reception/card/list',
    method: 'get'
  })
}

// 查询桌面列表

export function desktopList() {
  return request({
    url: '/reception/desktop/list',
    method: 'get'
  })
}

// 查询桌面详细信息
export function desktopDetails(desktopId) {
  return request({
    url: '/reception/folder/list',
    method: 'get',
    params: {
      desktopId: desktopId
    }
  })
}
// 新增桌面
export function desktopAdd(params) {
  return request({
    url: '/reception/desktop',
    method: 'post',
    data: params
  })
}

// 修改桌面
export function desktopEdit(params) {
  return request({
    url: '/reception/desktop',
    method: 'put',
    data: params
  })
}

// 新增桌面文件信息
export function addFolder(params) {
  return request({
    url: '/reception/folder/addReceptionFolder',
    method: 'post',
    data: params
  })
}

// 删除桌面
export function deleteDeskTop(id) {
  return request({
    url: '/reception/desktop/' + id,
    method: 'DELETE'
  })
}
